From a74bec1b38e68548d15db060457186049f3c9e5d Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 12 Mar 2007 14:11:07 +0000 Subject: [PATCH] xen: Set VGCF_online flag appropriately for getvcpucontext. Signed-off-by: Keir Fraser --- xen/arch/x86/domctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c index 00bb202d57..503b0000c7 100644 --- a/xen/arch/x86/domctl.c +++ b/xen/arch/x86/domctl.c @@ -450,6 +450,8 @@ void arch_get_info_guest(struct vcpu *v, vcpu_guest_context_u c) c(flags &= ~(VGCF_i387_valid|VGCF_in_kernel)); if ( test_bit(_VCPUF_fpu_initialised, &v->vcpu_flags) ) c(flags |= VGCF_i387_valid); + if ( !test_bit(_VCPUF_down, &v->vcpu_flags) ) + c(flags |= VGCF_online); if ( is_hvm_vcpu(v) ) { -- 2.30.2